<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >

<head>
	<title>:: tkt2seat</title>
	<meta name="author" content="Mauro Maggi - mau.maggi@gmail.com"/>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

	<link href="/<?= MVCApplication::getRoute()->getAppname()?>/css/default.css" rel="stylesheet" type="text/css" /> 

	<!--[if lt IE 7]>
	<script defer type="text/javascript" src="/<?= MVCApplication::getRoute()->getAppname()?>/js/trasparenza.js"></script>
	<![endif]-->
</head>

<body>

<div id="home_centrale">
	<div class="struttura">
		<div class="linkrosa" style="margin-bottom:10px;">
			<h1 class="lobster">TkT-2-Seat</h1>
		</div>
	</div>
</div>	

<div class="struttura pagina">
	<h2>Registrazione a TkT2Seat</h2>
	
	<p>
	Tutti i campi sono obbligatori
	<p>
	
	<form action="/<?= MVCApplication::getRoute()->getAppname()?>/registrazione" method="post">

		<div style="display: table-cell; width:200px;">
			Nome
		</div>
		<div style="display: table-cell">
			<input type="text" name="signup[nome]" value="<?php echo $this->signup['nome']; ?>" class="<?php if (isset($this->errors['nome'])) echo "error"; ?>" />
		</div>
		
		<div style="clear: both; margin-top:4px;"></div>
		
		<div style="display: table-cell; width:200px;">
			Cognome
		</div>
		<div style="display: table-cell">
			<input type="text" name="signup[cognome]" value="<?php echo $this->signup['cognome']; ?>"class="<?php if (isset($this->errors['cognome'])) echo "error"; ?>" />
		</div>

		<div style="clear: both; margin-top:4px;"></div>
		
		<div style="display: table-cell; width:200px;">
			Email
		</div>
		<div style="display: table-cell">
			<input type="text" name="signup[email]" value="<?php echo $this->signup['email']; ?>" class="<?php if (isset($this->errors['email'])) echo "error"; ?>" />
		</div>
	
		<div style="clear: both; margin-top:4px;"></div>
		
		<div style="display: table-cell; width:200px;">
			Password
		</div>
		<div style="display: table-cell">
			<input type="password" name="signup[password]" class="<?php if (isset($this->errors['password'])) echo "error"; ?>" />
		</div>

		<div style="clear: both; margin-top:4px;"></div>
			
		<div style="display: table-cell; width:200px;">
			Ripeti password
		</div>
		<div style="display: table-cell">
			<input type="password" name="signup[rpassword]" class="<?php if (isset($this->errors['password'])) echo "error"; ?>" />
		</div>
		
		<div style="clear: both;"></div>
		
		<ul>
		<?php if (!empty($this->errors)): ?>
			<?php foreach ($this->errors as $error): ?>
				<?php foreach ($error as $e): ?>
					<li class="error"><?php echo $e; ?></li>
				<?php endforeach ?>
			<?php endforeach ?>
		<?php endif; ?>
		</ul>
		
		<p>&nbsp;</p>
		<input type="submit" value="Invia dati" name="signup[submit]" />
		<input type="button" value="Indietro" onclick="window.location='/<?php echo MVCApplication::getRoute()->getAppname()?>';" />
	
	</form>
</div>

</body>

</html>